import { ValidateRule } from "../utils/validate";

/**
 * [API] 获取商家首页排版数据
 */
export interface ServiceShopGetShopDesignParams {
  shop_id?: number;
}

/**
 * [API] 创建商户
 */
export interface IServiceShopCreateParams {
  shop_name: string;
  shop_tel: string;
  shop_address?: string;
}

/**
 * 【校验规则】创建商户
 */
export const RuleShopCreate: ValidateRule<IServiceShopCreateParams> = {
  shop_name: [
    { required: true, message: '店铺名称不得为空' },
    { max: 9, message: '商家名称不得超过20个字' },
  ],
};
